﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/admin/managemain.Master" CodeBehind="compmanage_index.aspx.cs" Inherits="uswinweb.admin.compmanage_index" %>
<%@ Register TagPrefix="win" TagName="complist" Src="../datacontrol/companyList.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headcontent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="maincontent" runat="server">
<input type="button" id="reclick" name="reclick" onclick="reclcik()" style="display: none"  />
<div class="cot">
	<div class="adnr">
		<p class="adnrt">
			<input name="keyword" id="keyword" class="soon" type="text" style="width:200px;" />
			<input name="" class="soso" type="button" value="搜索" onclick="search()" />
		</p>
		<ul class="adnr2 mar_top">
            <li><input type="checkbox" name="chkall" value="checkbox" id ="chkall"  onclick="CheckAll(this.form,'ids');"/></li>
			<li><a href="compmanage_add.aspx" rel="iframe" title=" :: :: width:600,height:700" class="lightview">新 增</a></li>
            <li><a href="#" onclick="del('all')">批量删除</a></li>
		</ul>
		<div class="adnr3" >
            <div id="showdata">
			    <win:complist runat="server" ID="complist1" />
            </div>
		</div>
		<i class="tp"></i><i class="bt"></i>
	</div>
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="footcontent" runat="server">
<script type="text/javascript">
    function reclcik() {
        AjaxHelper.Updater('companyList.ascx', 'showdata', 'action=reclick');
    }
    function search() {
        var val = document.getElementById('keyword').value;
        AjaxHelper.Updater('companyList.ascx', 'showdata', 'action=search&parms=' + val);

    }
</script>
</asp:Content>